<?php

namespace Controller\Ajax;

class City extends Base {

	public function getCity() {
		$all = \Business\City::instance()->getCity();
		$this->response($all);
	}

	public function getTowns() {
		$code = $this->getParam('code');
		$all = \Business\City::instance()->getTowns($code);
		$this->response($all);
	}
}